package com.jy.controller;


import com.jy.entity.YgEmployee;
import com.jy.service.IYgEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * illustriousness.`yg_employee` 前端控制器
 * </p>
 *
 * @author Null
 * @since 2022-11-15
 */
@RestController
@RequestMapping("/yg-employee")
public class YgEmployeeController {

    @Autowired
    private IYgEmployeeService IYgEmployeeService;

    @GetMapping("/aaa")
    public List<YgEmployee> logg(){
        return IYgEmployeeService.listEmpl();
    }

}
